<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" ><HEAD><TITLE>云和租房 - 首页</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK rel=stylesheet type=text/css href="../css/css/style.css">
    <META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<script src="../css/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    $(function () {
        $("#ss").click(function () {
            var str1=$("#str1").val();
            $.ajax({
                url:"shou",
                type:"post",
                data:{"str1":str1},
                success:function (data) {
                     data = eval("("+data+")");

                    if(data!=null){
                        $(".house-list").empty();
                        for(var i=0;i<=data.length;i++){
                            $(".house-list").append("<TR \" >\n" +
                                "                <TD class=house-thumb><img src="+data[i].picture+" width=\"80\" height=\"60\" alt=\"\"/>\n" +
                                "                <TD>\n" +
                                "                    <DL>\n" +
                                "                        <DT><A href='../seHouse?hid="+data[i].hid+"' target=\"_blank\"><DT>"+data[i].hname+"</DT></A></DT>\n" +
                                "                        <DT>"+data[i].location+"</DT><DT ><SPAN>"+data[i].area+"</SPAN>平米</DT>联系方式：<DT> "+data[i].tel+"</DT></DL></TD>\n" +
                                "                <TD class=house-type>"+data[i].htype+"</TD>\n" +
                                "                <TD  class=house-price><SPAN>"+data[i].price+"</SPAN>元/月</TD></TR>")
                        }
                        }
                }

            })
        })
    })

</script>
<TABLE>
    <DIV id=header class=wrap>
        <DIV id=logo><IMG src="css/images/logo.gif"></DIV></DIV>
    <DIV id=navbar class=wrap>
        <DL class="search clearfix">
            <DT>
                <UL>
                    <LI class=bold>房屋信息</LI>
                    <LI>标题：<INPUT id="str1" class=text type=text name=title> <LABEL class=ui-blue><INPUT id="ss"  value=搜索房屋 type=button name=search></LABEL>
                    </LI></UL></DT>

                <ul style="float: right">
                    <a href="selPeople">登录</a>
                    <a href="addPeople">注册</a>
                </ul>

        </DL>


    </DIV>


    <DIV class="main wrap">
        <TABLE  class="house-list">

            <TR th:each="house:${list}" >
                <TD class=house-thumb><img th:src="${house.picture}" width="80" height="60" alt=""/>
                <TD>
                    <DL>
                        <DT><A th:href="@{../seHouse(hid=${house.hid})}" target="_blank"><DT th:text="${house.hname}"></DT></A></DT>
                        <DT th:text="${house.location}"></DT><DT ><SPAN th:text="${house.area}"></SPAN>平米</DT>联系方式：<DT th:text="${house.tel}"> </DT></DL></TD>
                <TD th:text="${house.htype}" class=house-type></TD>
                <TD  class=house-price><SPAN th:text="${house.price}"></SPAN>元/月</TD></TR></TABLE>

        <DIV class=pager>
            <UL >
                <LI><A th:href="@{../show(page=${page-1})}">上一页</A></LI>
                <LI><A th:href="@{../show(page=${page+1})}">下一页</A></LI>
                <SPAN class=total>
                    第<label th:text="${page}"  class="btnStyle middle"></label>页
	                共<label th:text="${pages}"  class="btnStyle middle"></label>页
                </SPAN> </UL></DIV></DIV>
<DIV id=footer class=wrap>
    <DL>
        <DT>云和租房 © 2010 云和 京ICP证1000001号</DT>
        <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD></DL></DIV></BODY></HTML>